package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DrTypeModeGroupMapper;
import com.ruoyi.system.domain.DrTypeModeGroup;
import com.ruoyi.system.service.IDrTypeModeGroupService;

/**
 * 全局变量分组Service业务层处理
 * 
 * @author yaozh
 * @date 2024-03-18
 */
@Service
public class DrTypeModeGroupServiceImpl implements IDrTypeModeGroupService 
{
    @Autowired
    private DrTypeModeGroupMapper drTypeModeGroupMapper;

    /**
     * 查询全局变量分组
     * 
     * @param id 全局变量分组主键
     * @return 全局变量分组
     */
    @Override
    public DrTypeModeGroup selectDrTypeModeGroupById(Long id)
    {
        return drTypeModeGroupMapper.selectDrTypeModeGroupById(id);
    }

    /**
     * 查询全局变量分组列表
     * 
     * @param drTypeModeGroup 全局变量分组
     * @return 全局变量分组
     */
    @Override
    public List<DrTypeModeGroup> selectDrTypeModeGroupList(DrTypeModeGroup drTypeModeGroup)
    {
        return drTypeModeGroupMapper.selectDrTypeModeGroupList(drTypeModeGroup);
    }

    @Override
    public List<DrTypeModeGroup> selectRegGroupForAll(){
        return drTypeModeGroupMapper.selectRegGroupForAll();
    }

    /**
     * 新增全局变量分组
     * 
     * @param drTypeModeGroup 全局变量分组
     * @return 结果
     */
    @Override
    public int insertDrTypeModeGroup(DrTypeModeGroup drTypeModeGroup)
    {
        return drTypeModeGroupMapper.insertDrTypeModeGroup(drTypeModeGroup);
    }

    /**
     * 修改全局变量分组
     * 
     * @param drTypeModeGroup 全局变量分组
     * @return 结果
     */
    @Override
    public int updateDrTypeModeGroup(DrTypeModeGroup drTypeModeGroup)
    {
        return drTypeModeGroupMapper.updateDrTypeModeGroup(drTypeModeGroup);
    }

    /**
     * 批量删除全局变量分组
     * 
     * @param ids 需要删除的全局变量分组主键
     * @return 结果
     */
    @Override
    public int deleteDrTypeModeGroupByIds(Long[] ids)
    {
        return drTypeModeGroupMapper.deleteDrTypeModeGroupByIds(ids);
    }

    /**
     * 删除全局变量分组信息
     * 
     * @param id 全局变量分组主键
     * @return 结果
     */
    @Override
    public int deleteDrTypeModeGroupById(Long id)
    {
        return drTypeModeGroupMapper.deleteDrTypeModeGroupById(id);
    }
}
